| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | $(function () { |
||
| 6 | setupToggleTable(window.countsByTool, window.toolsChart, 'count', function (newData) { |
||
| 7 | var total = 0; |
||
| 8 | Object.keys(newData).forEach(function (tool) { |
||
| 9 | total += parseInt(newData[tool].count, 10); |
||
| 10 | }); |
||
| 11 | var toolsCount = Object.keys(newData).length; |
||
| 12 | /** global: i18nLang */ |
||
| 13 | $('.tools--tools').text( |
||
| 14 | toolsCount.toLocaleString(i18nLang) + " " + |
||
| 15 | $.i18n('num-tools', toolsCount) |
||
| 16 | ); |
||
| 17 | $('.tools--count').text(total.toLocaleString(i18nLang)); |
||
| 18 | }); |
||
| 19 | |||
| 30 |